<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>帐户绑定管理</title>
<link href="../../../css/list.css" rel="stylesheet" type="text/css" />
<link href="../../../uiwidget/grid/css/uiwidget-grid.css" rel="stylesheet" type="text/css" />
<link href="../../../uiwidget/tree/css/uiwidget-tree.css" rel="stylesheet" type="text/css" />
<link href="../../../css/popwindow.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../../../uiwidget/jquery.min.js"></script>
<script type="text/javascript" src="../../../uiwidget/dragdrop/uiwidget-drag.min.js"></script>
<script type="text/javascript" src="../../../uiwidget/grid/uiwidget-grid.min.js"></script>
<script type="text/javascript" src="../../../uiwidget/tree/uiwidget-tree.min.js"></script>
<script>
function dateSelect(value){
	if (value == 0) {
		document.getElementById('Select12').style.display="block";
		document.getElementById('Select14').style.display="none";
	}
	if (value == 1) {
		document.getElementById('Select12').style.display="none";
		document.getElementById('Select14').style.display="block";
	}
}
</script>
</head>
<body>
<div class="popwindow-title">添加帐户绑定</div>
<div class="popwindow-container">
<div class="list-container grid-border">
<!--搜索-->
<div class="list-search">
<ul>  
    <li><label for="">帐户名称：</label><input id="" name="" type="text" class="input-common input-word-10" /></li>
	<li><label for="">用户真实姓名：</label><input id="" name="" type="text" class="input-common input-word-10" /></li>
    <li><label for="">状态：</label><select id="" name="" class="select-word-5">
            <option selected="selected">全部</option>
	    <option >激活</option>
            <option >停用</option>
	  </select></li>
	<li class="search-btn-area">
        <div class="btn-order">
          <ul>
            <li class="left-normal" id="btn1_11"></li>
            <li class="middle-normal" id="btn1_12" onmouseover="btn_change_over(1)" onmouseout="btn_change_out(1)" onblur="btn_change(1)"><img src="../../../images/ico16/ico-search.gif" alt="查询" />查 询</li>
            <li class="right-normal" id="btn1_13"></li>
          </ul>
        </div>
      </li>
	  </ul>
</div>
<!--结束-->

 <!--工具栏-->
<div class="toolbar">
<span class="list-title">系统名称：SAAS-RES</span>
</div>
 <!--结束-->

<!--列表-->
<div id="grid" class="border-lbr"></div>
<!--结束-->

  </div>
</div>
<div class="popwindow-btn-area">
  <div class="btn-order" onclick="windowClose()">
    <ul>
      <li class="left-normal" id="btn1_11"></li>
      <li class="middle-normal" id="btn1_12" onmouseover="btn_change_over(1)" onmouseout="btn_change_out(1)" onblur="btn_change(1)"><img src="../../../images/ico16/ico-ok.gif" alt="" />确 定</li>
      <li class="right-normal" id="btn1_13"></li>
    </ul>
  </div>
  <div class="btn-order" onclick="windowClose()">
    <ul>
      <li class="left-normal" id="btn1_31"></li>
      <li class="middle-normal" id="btn1_32" onmouseover="btn_change_over(3)" onmouseout="btn_change_out(3)" onblur="btn_change(3)"><img src="../../../images/ico16/ico-cancel.gif" alt="" />取 消</li>
      <li class="right-normal" id="btn1_33"></li>
    </ul>
  </div>
</div>
<script language="javascript">
var grid;
$(document).ready(function(){
	grid = $('#grid').grid({
	     height: 300
		,cm : [{checkbox:true}
		,{header: "帐户名称", dataIndex: 'f1', width:'10%'}
		,{header: "用户真实姓名", dataIndex: 'f6', width:'15%'}
		,{header: "帐户角色", dataIndex: 'f2', width:'15%'}
		,{header: "E-mail", dataIndex: 'f3', width:'20%'}
		,{header: "注册日期", dataIndex: 'f4', width:'10%'}
		,{header: "描述", dataIndex: 'f5', sortable: false}
		]		
		,data : {"totalCount":2, "result":[
		{id:"1", f1 : "admin", f2 : "全局帐户管理员" , f3 : "jiangdongcai@ceopen.cn" , f4 : "2009-06-15" , f5 : "" ,f6 : "张三"}
		,{id:"2", f1 : "admin", f2 : "全局帐户管理员" , f3 : "jiangdongcai@ceopen.cn" , f4 : "2009-06-15" , f5 : "", f6 : "李四"}
		]}		
				//单选时的菜单
		,contextMenuSingle : [
		{text: '新建',icon: '../../images/ico16/ico-add.gif'
			,handler: function(e){
				$('#right-content').page('account/pop-account-man-add.html');
			}}
			,{text: '修改',icon: '../../images/ico16/ico-edit.gif'
				,handler: function(e){
				var selections = grid.getSelections();
							}}
			,{text: '删除',icon: '../../images/ico16/ico-cancel.gif'
				,handler: function(e){
					var selections = grid.getSelections();
					top.message('确定要删除选中的记录吗？','warning');
			}}
						]
		//多选时的菜单	
		,contextMenuMulti : [
			{text: '删除',icon: '../../images/ico16/ico-cancel.gif'
				,handler: function(e){
					var selections = grid.getSelections();
					top.message('确定要删除选中的记录吗？','warning');
			}}
			 
			]	
	});	
});
</script>
</body>
</html>
